package anji.plus.system.mark.domain;

import anji.plus.system.mark.base.BaseDomain;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 系统用户表
 * </p>
 *
 * @author luwei
 * @since 2023-11-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class PrizeRecord extends BaseDomain {

    private static final long serialVersionUID = 1L;


    /**
     * 获奖人姓名
     */
    @TableField("USER_NAME")
    private String userName;

    /**
     * 奖品ID
     */
    @TableField("PRIZE_ID")
    private String prizeId;

    /**
     * 奖品名称
     */
    @TableField("PRIZE_NAME")
    private String prizeName;


    /**
     * 创建时间
     */
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("CREATE_TIME")
    private String createTime;

    /**
     * 奖品等级
     */
    @TableField("PRIZE_LEVEL")
    private String prizeLevel;
}
